package com.cz.run.beans.mysql;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户积分解冻表
 * </p>
 *
 * @author CAIYJ
 * @since 2018-06-10
 */
@TableName("user_point_frozen")
public class UserPointFrozen extends Model<UserPointFrozen> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("user_id")
    private Integer userId;
    private Double point;
    /**
     * 0:未解冻；1:解冻
     */
    private Integer status;
    /**
     * 来源
     */
    private String from;
    /**
     * 解冻时间
     */
    private Date time;
    @TableField("creat_time")
    private Date creatTime;
    @TableField("update_time")
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Double getPoint() {
        return point;
    }

    public void setPoint(Double point) {
        this.point = point;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserPointFrozen{" +
        ", id=" + id +
        ", userId=" + userId +
        ", point=" + point +
        ", status=" + status +
        ", from=" + from +
        ", time=" + time +
        ", creatTime=" + creatTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
